{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-4981 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-4981 is a high-severity path traversal vulnerability in redhat:pagure, published on 12 May 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-4981 and fix it if it is affected.\n\nWhat it is: CVE-2024-4981 is a high-severity path traversal vulnerability in redhat:pagure, published on 12 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-4981 in the wild and no public exploit code.\n\nAffected product: redhat:pagure. 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-2024-4981/ (Markdown: https://insights.sbomify.com/CVE-2024-4981/index.md)","id":"CVE-2024-4981","markdown":"https://insights.sbomify.com/CVE-2024-4981/index.md","name":"CVE-2024-4981","record":{"aliases":["DEBIAN-CVE-2024-4981","GHSA-vw7p-rwg9-7mrq","UBUNTU-CVE-2024-4981"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Pagure git hosting","requires_auth":"low_privilege","summary":"A malicious user can submit a git repository with symbolic links to expose content from outside the repository via the Pagure server.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"fedora","cpe":[{"product":"pagure","vendor":"redhat"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"description":"A vulnerability was discovered in Pagure server. If a malicious user were to submit a git repository with symbolic links, the server could unintentionally show incorporate and make visible content from outside the git repo.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Pagure: _update_file_in_git() follows symbolic links in temporary clones","id":"CVE-2024-4981","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":0,"n_references":4,"next":{"headline":"Pagure: path traversal in view_issue_raw_file()","id":"CVE-2024-4982"},"packages":[],"prev":{"headline":"Cross-site scripting in WPKoi Templates for Elementor","id":"CVE-2024-4980"},"products":["redhat:pagure"],"published":"2025-05-12","related":[{"cvss_score":7.6,"headline":"Pagure: path traversal in view_issue_raw_file()","id":"CVE-2024-4982","kev_date_added":null,"published":"2025-05-12"},{"cvss_score":7.5,"headline":"Missing authorization in Pagure","id":"CVE-2017-1002151","kev_date_added":null,"published":"2017-09-14"},{"cvss_score":6.1,"headline":"Pagure 2.2.1 XSS in raw file endpoint","id":"CVE-2016-1000007","kev_date_added":null,"published":"2016-10-07"},{"cvss_score":5.9,"headline":"Information disclosure in n/a","id":"CVE-2019-7628","kev_date_added":null,"published":"2019-02-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-12","vendors":["redhat"]},"summary":"A malicious user can submit a git repository with symbolic links to expose content from outside the repository via the Pagure server.","url":"https://insights.sbomify.com/CVE-2024-4981/"}