CVE-2015-1158
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe add_job function in scheduler/ipp.c in cupsd in CUPS before 2.0.3 performs incorrect free operations for multiple-value job-originating-host-name attributes, which allows remote attackers to trigger data corruption for reference-counted strings via a crafted (1) IPP_CREATE_JOB or (2) IPP_PRINT_JOB request, as demonstrated by replacing the configuration file and consequently executing arbitrary code.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA memory management vulnerability in the add_job function in scheduler/ipp.c in CUPS before version 2.0.3 allows remote attackers to trigger incorrect free operations on multiple-value job-originating-host-name attributes. This causes data corruption of reference-counted strings via crafted IPP_CREATE_JOB or IPP_PRINT_JOB requests, potentially enabling arbitrary code execution through configuration file replacement.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 2.0.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
AV:N/AC:L/Au:N/C:C/I:C/A:C
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify the installed CUPS versionRun 'cups-config --version' or query your system's package manager (e.g., 'dpkg -l cups', 'rpm -q cups', or 'brew list --versions cups')Affected if The reported version is 2.0.2 or lower, indicating the vulnerable release
-
Confirm CUPS daemon is runningCheck if the cupsd process is active using 'ps aux | grep cupsd' or 'systemctl status cups'Affected if CUPS is running and serving print requests, making the ipp.c vulnerability reachable
-
Verify IPP listening statusInspect CUPS configuration in /etc/cups/cupsd.conf for 'Listen' directives and check if port 631/UDP is open using 'netstat -an | grep 631' or 'ss -tlnp | grep 631'Affected if IPP services are bound to accessible network interfaces, allowing remote attackers to send crafted IPP_CREATE_JOB or IPP_PRINT_JOB requests
-
Check IPP job processing is enabledReview /etc/cups/cupsd.conf for relevant JobPrivateAccess, JobPrivateGroup, or Limit operations related to IPP job creation, and verify the server is not configured with 'SSL' or 'TLS' required for all operationsAffected if IPP job submission is permitted without strong authentication or encryption, enabling the malformed attribute attack
Your environment is affected if CUPS version 2.0.2 or lower is installed and the CUPS daemon is running with IPP (port 631) exposed to network access, allowing remote attackers to send malicious IPP job requests.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade to CUPS version 2.0.3 or later to remediate this vulnerability. If immediate upgrading is not possible, restrict access to IPP printing services from untrusted networks.
CUPS 2.0.3 or later
- 1. Check the current installed CUPS version using: cups-config --version or rpm -q cups or dpkg -l cups
- 2. For Debian/Ubuntu-based systems: Run 'sudo apt-get update' then 'sudo apt-get install cups' to upgrade to the latest available version
- 3. For Red Hat/CentOS-based systems: Run 'sudo yum update cups' or 'sudo dnf update cups'
- 4. For SUSE-based systems: Run 'sudo zypper update cups'
- 5. After upgrading, verify the new version using: cups-config --version (should show 2.0.3 or later)
- 6. Restart the CUPS service using: sudo systemctl restart cups (or sudo service cups restart)
- 7. Verify the service is running: sudo systemctl status cups
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing8.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,472.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2015-1158 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- www.exploit-db.com
- www.cups.org
- www.cups.org
- www.kb.cert.org
- googleprojectzero.blogspot.in
- kb.juniper.net
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- rhn.redhat.com
- www.debian.org
- www.securityfocus.com
- www.securitytracker.com
- www.ubuntu.com
- bugzilla.opensuse.org
- bugzilla.redhat.com
- code.google.com
- github.com
- security.gentoo.org
- www.exploit-db.com
- www.exploit-db.com
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2015-1158 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data