CVE-2021-45492
Last modified
CVE-2021-45492 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In Sage 300 ERP (formerly accpac) through 6.8.x, the installer configures the C:\Sage\Sage300\Runtime directory to be the first entry in the system-wide PATH environment variable. However, this directory is writable by unprivileged users because the Sage installer fails to set explicit permissions and therefore inherits weak permissions from the C:\ folder. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
Description
In Sage 300 ERP (formerly accpac) through 6.8.x, the installer configures the C:\Sage\Sage300\Runtime directory to be the first entry in the system-wide PATH environment variable. However, this directory is writable by unprivileged users because the Sage installer fails to set explicit permissions and therefore inherits weak permissions from the C:\ folder. Because entries in the system-wide PATH variable are included in the search order for DLLs, an attacker could perform DLL search-order hijacking to escalate their privileges to SYSTEM. Furthermore, if the Global Search or Web Screens functionality is enabled, then privilege escalation is possible via the GlobalSearchService and Sage.CNA.WindowsService services, again via DLL search-order hijacking because unprivileged users would have modify permissions on the application directory. Note that while older versions of the software default to installing in %PROGRAMFILES(X86)% (which would allow the Sage folder to inherit strong permissions, making the installation not vulnerable), the official Sage 300 installation guides for those versions recommend installing in C:\Sage, which would make the installation vulnerable.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Sage | Sage 300 | <= 2022 |
References
- https://controlgap.com/blog?tag=insecurityThird Party Advisory
- https://www.controlgap.com/blog/sage-300-case-studyExploit, Mitigation, Third Party Advisory
- https://controlgap.com/blog?tag=insecurityThird Party Advisory
- https://www.controlgap.com/blog/sage-300-case-studyExploit, Mitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-45492?
How severe is CVE-2021-45492?
How do I fix CVE-2021-45492?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-45486In the IPv4 implementation in the Linux kernel before 5.12.4…3.5
- CVE-2021-45487In NetBSD through 9.2, the IPv4 ID generation algorithm does…7.5
- CVE-2021-45488In NetBSD through 9.2, there is an information leak in the T…7.5
- CVE-2021-45489In NetBSD through 9.2, the IPv6 Flow Label generation algori…7.5
- CVE-2021-45490The client applications in 3CX on Windows, the 3CX app for i…9.1
- CVE-2021-454913CX System through 2022-03-17 stores cleartext passwords in …6.5
- CVE-2021-45493Certain NETGEAR devices are affected by disclosure of admini…7.5
- CVE-2021-45494Certain NETGEAR devices are affected by an attacker's abilit…4.5
- CVE-2021-45495NETGEAR D7000 devices before 1.0.1.68 are affected by authen…9.8
- CVE-2021-45496NETGEAR D7000 devices before 1.0.1.82 are affected by authen…9.8
- CVE-2021-45497NETGEAR D7000 devices before 1.0.1.82 are affected by authen…9.8
- CVE-2021-45498NETGEAR R6700v2 devices before 1.2.0.88 are affected by auth…9.8
Are you affected by CVE-2021-45492?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
