{"answers":{"affected":"1 open source package ship an affected version, including openproject. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-31140 exists.","fix":"Upgrade openproject to 12.5.4 or later.","what":"CVE-2023-31140 is a medium-severity vulnerability in opf openproject, published on 8 May 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-31140 and fix it if it is affected.\n\nWhat it is: CVE-2023-31140 is a medium-severity vulnerability in opf openproject, published on 8 May 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-31140 exists.\n\nAffected packages and fixed versions:\n- openproject (Bitnami): affected from 7.4.0; fixed in 12.5.4\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-2023-31140/ (Markdown: https://insights.sbomify.com/CVE-2023-31140/index.md)","id":"CVE-2023-31140","markdown":"https://insights.sbomify.com/CVE-2023-31140/index.md","name":"CVE-2023-31140","record":{"aliases":["BIT-openproject-2023-31140","GHSA-xfp9-qqfj-x28q"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenProject project management","requires_auth":"low_privilege","summary":"Attackers can maintain access via existing sessions after a user enables two-factor authentication, bypassing the intended security control.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"openproject","vendor":"openproject"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration"}],"description":"OpenProject is open source project management software. Starting with version 7.4.0 and prior to version 12.5.4, when a user registers and confirms their first two-factor authentication (2FA) device for an account, existing logged in sessions for that user account are not terminated. Likewise, if an administrators creates a mobile phone 2FA device on behalf of a user, their existing sessions are not terminated. The issue has been resolved in OpenProject version 12.5.4 by actively terminating sessions of user accounts having registered and confirmed a 2FA device. As a workaround, users who register the first 2FA device on their account can manually log out to terminate all other active sessions. This is the default behavior of OpenProject but might be disabled through a configuration option. Double check that this option is not overridden if one plans to employ the workaround.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"OpenProject user sessions not terminated after activation of 2FA","id":"CVE-2023-31140","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"security_feature_bypass","year":"2023"},"n_packages":1,"n_references":4,"next":{"headline":"OpenSearch issue with fine-grained access control during extremely rare race conditions","id":"CVE-2023-31141"},"packages":[{"ecosystem":"Bitnami","fixed":["12.5.4"],"introduced":["7.4.0"],"last_affected":[],"package":"openproject","purl":"pkg:bitnami/openproject","source":"BIT-openproject-2023-31140"}],"prev":{"headline":"DHIS2 Core unrestricted session cookies with Personal Access Tokens","id":"CVE-2023-31139"},"products":["openproject"],"published":"2023-05-08","related":[{"cvss_score":9.9,"headline":"OpenProject: SQL Injection in Cost Reporting =n Operator via parse_number_string","id":"CVE-2026-34717","kev_date_added":null,"published":"2026-04-02"},{"cvss_score":9.4,"headline":"Command Injection on OpenProject repositories leads to Remote Code Execution","id":"CVE-2026-25763","kev_date_added":null,"published":"2026-02-06"},{"cvss_score":9.4,"headline":"OpenProject has Argument Injection on Repository module that allows Arbitrary File Write","id":"CVE-2026-24685","kev_date_added":null,"published":"2026-01-28"},{"cvss_score":9.1,"headline":"OpenProject has a SQL Injection via Custom Field Name that can be chained to Remote Code Execution","id":"CVE-2026-32698","kev_date_added":null,"published":"2026-03-18"},{"cvss_score":9.1,"headline":"OpenProject's repository files are served with the MIME type allowing them to be used to bypass Content Security Policy","id":"CVE-2026-32703","kev_date_added":null,"published":"2026-03-18"},{"cvss_score":9.1,"headline":"OpenProject is Vulnerable to Arbitrary File Read via ImageMagick SVG Coder","id":"CVE-2026-22600","kev_date_added":null,"published":"2026-01-10"},{"cvss_score":8.9,"headline":"OpenProject has SSRF and CSWSH in Hocuspocus Synchronization Server","id":"CVE-2026-24772","kev_date_added":null,"published":"2026-01-28"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-29","vendors":["opf"]},"summary":"Attackers can maintain access via existing sessions after a user enables two-factor authentication, bypassing the intended security control.","url":"https://insights.sbomify.com/CVE-2023-31140/"}