{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-5519 exists.","fix":"Apply the vendor's patch.","what":"CVE-2012-5519 is a high-severity vulnerability in Apple Cups, published on 20 Nov 2012. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2012-5519 and fix it if it is affected.\n\nWhat it is: CVE-2012-5519 is a high-severity vulnerability in Apple Cups, published on 20 Nov 2012. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-5519 exists.\n\nAffected product: Apple Cups. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2012-5519/ (Markdown: https://insights.sbomify.com/CVE-2012-5519/index.md)","id":"CVE-2012-5519","markdown":"https://insights.sbomify.com/CVE-2012-5519/index.md","name":"CVE-2012-5519","record":{"aliases":["DEBIAN-CVE-2012-5519","DSA-2600-1","GHSA-ccjj-h3mm-j4rr","RHSA-2013:0580"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["privilege_escalation","data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"CUPS printing system","requires_auth":"low_privilege","summary":"Local users in the lpadmin group can read or write arbitrary files as root via the CUPS web interface administrator key.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"cups","vendor":"apple"}],"cvss":{"score":7.2,"severity":"high","source":"nvd","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","version":"2.0"},"cwes":[{"id":"CWE-264","name":null}],"description":"CUPS 1.4.4, when running in certain Linux distributions such as Debian GNU/Linux, stores the web interface administrator key in /var/run/cups/certs/0 using certain permissions, which allows local users in the lpadmin group to read or write arbitrary files as root by leveraging the web interface.","ecosystems":["Red Hat:enterprise_linux:5::server","Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation"],"exploits":{"exploitdb":0,"first_seen":"2012-11-20","github_poc":1,"max_poc_stars":9,"metasploit":1,"nuclei":0,"refs":[{"date":"2022-01-07T15:39:47Z","kind":"github_poc","ref":"https://github.com/p1ckzi/CVE-2012-5519","stars":9,"title":"cups-root-file-read.sh | CVE-2012-5519"},{"date":"2012-11-20","kind":"metasploit","ref":"post/multi/escalate/cups_root_file_read","stars":null,"title":"CUPS 1.6.1 Root File Read"}],"tier":"weaponised"},"has_fix":true,"headline":"Privilege escalation in n/a","id":"CVE-2012-5519","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"apple:cups","products":["apple:cups"],"type":"privilege_escalation","year":"2012"},"n_packages":29,"n_references":13,"next":{"headline":"Command injection in n/a","id":"CVE-2012-5520"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:1.3.7-30.el5_9.3"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/redhat/cups","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:1.3.7-30.el5_9.3"],"introduced":["0"],"last_affected":[],"package":"cups-debuginfo","purl":"pkg:rpm/redhat/cups-debuginfo","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:1.3.7-30.el5_9.3"],"introduced":["0"],"last_affected":[],"package":"cups-devel","purl":"pkg:rpm/redhat/cups-devel","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:1.3.7-30.el5_9.3"],"introduced":["0"],"last_affected":[],"package":"cups-libs","purl":"pkg:rpm/redhat/cups-libs","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["1:1.3.7-30.el5_9.3"],"introduced":["0"],"last_affected":[],"package":"cups-lpd","purl":"pkg:rpm/redhat/cups-lpd","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/redhat/cups","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-debuginfo","purl":"pkg:rpm/redhat/cups-debuginfo","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-devel","purl":"pkg:rpm/redhat/cups-devel","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-libs","purl":"pkg:rpm/redhat/cups-libs","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-lpd","purl":"pkg:rpm/redhat/cups-lpd","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-php","purl":"pkg:rpm/redhat/cups-php","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/redhat/cups","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-debuginfo","purl":"pkg:rpm/redhat/cups-debuginfo","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-devel","purl":"pkg:rpm/redhat/cups-devel","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-libs","purl":"pkg:rpm/redhat/cups-libs","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-lpd","purl":"pkg:rpm/redhat/cups-lpd","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-php","purl":"pkg:rpm/redhat/cups-php","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/redhat/cups","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-debuginfo","purl":"pkg:rpm/redhat/cups-debuginfo","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-devel","purl":"pkg:rpm/redhat/cups-devel","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-libs","purl":"pkg:rpm/redhat/cups-libs","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-lpd","purl":"pkg:rpm/redhat/cups-lpd","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-php","purl":"pkg:rpm/redhat/cups-php","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/redhat/cups","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-debuginfo","purl":"pkg:rpm/redhat/cups-debuginfo","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-devel","purl":"pkg:rpm/redhat/cups-devel","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-libs","purl":"pkg:rpm/redhat/cups-libs","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-lpd","purl":"pkg:rpm/redhat/cups-lpd","source":"RHSA-2013:0580"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["1:1.4.2-50.el6_4.4"],"introduced":["0"],"last_affected":[],"package":"cups-php","purl":"pkg:rpm/redhat/cups-php","source":"RHSA-2013:0580"}],"prev":{"headline":"Auth bypass in vdsm","id":"CVE-2012-5518"},"products":["n/a"],"published":"2012-11-20","related":[{"cvss_score":10,"headline":"Cross-site request forgery in n/a","id":"CVE-2008-5184","kev_date_added":null,"published":"2008-11-21"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-3641","kev_date_added":null,"published":"2008-10-10"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-0053","kev_date_added":null,"published":"2008-03-18"},{"cvss_score":9.8,"headline":"Missing authorization in cups","id":"CVE-2012-6094","kev_date_added":null,"published":"2019-12-20"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2010-2941","kev_date_added":null,"published":"2010-11-05"},{"cvss_score":9.8,"headline":"Security feature bypass in n/a","id":"CVE-2004-2154","kev_date_added":null,"published":"2005-07-05"},{"cvss_score":7.5,"headline":"Auth bypass in n/a","id":"CVE-2017-18190","kev_date_added":null,"published":"2018-02-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Local users in the lpadmin group can read or write arbitrary files as root via the CUPS web interface administrator key.","url":"https://insights.sbomify.com/CVE-2012-5519/"}