CVEs from 2021
33 real-world CVEs published in 2021. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2021-0920medium 6.42021
AF_UNIX MSG_PEEK garbage-collection race
A MSG_PEEK receive could duplicate SCM_RIGHTS file references without synchronizing with AF_UNIX garbage collection, allowing GC to free a message buffer that the peeking receiver still used.
- CVE-2021-44228critical 10.02021
Log4Shell: JNDI lookup in logged input (CVE-2021-44228)
A string logged by Log4j with message lookups enabled can carry a JNDI reference, making the logger resolve an attacker-controlled name through JNDI and load a remote class. Nicknamed Log4Shell (Log4j plus shell), it scored a perfect 10.0, was reported by Chen Zhaojun of Alibaba Cloud, and became one of the most widely exploited vulnerabilities ever.
- CVE-2021-42278high 7.52021
noPac: sAMAccountName spoofing to domain controller impersonation
A standard user can rename a machine account to a domain controller's name without the trailing $, because the directory never enforces the machine-account suffix, which a Kerberos S4U2self lookup then resolves back to the real DC.
- CVE-2021-30807high 7.82021
IOMobileFramebuffer unchecked displayed-surface index
A user-controlled displayed-framebuffer index was not checked against an inline IOSurface pointer array, so an out-of-bounds pointer could be treated as an IOSurface and used through the wrong type.
- CVE-2021-42013critical 9.82021
Apache path traversal (incomplete fix of CVE-2021-41773)
The 2.4.50 fix for the 2.4.49 traversal only decoded one layer, so a double-encoded dot-segment slips past it and re-traverses.
- CVE-2021-41773critical 9.82021
Apache HTTP Server mixed-encoding path traversal
Apache 2.4.49 decoded and normalized a path in one pass, allowing a literal dot plus an encoded dot to evade parent-directory removal.
- CVE-2021-22005critical 9.82021
vCenter Analytics telemetry filename traversal
The unauthenticated Analytics endpoint derived a JSON filename from the _c and _i query parameters and wrote the POST body beneath its telemetry directory. Traversal components in the derived name were not contained, so the caller could redirect the write to an arbitrary service-writable path.
- CVE-2021-38647critical 9.82021
OMIGOD: OMI unauthenticated RCE via missing auth check
An HTTP request that omits the Authorization header is dispatched without ever confirming it was authenticated, so an unauthenticated attacker runs commands as root on the OMI management agent.
- CVE-2021-40444high 7.82021
MSHTML remote-HTML ActiveX to RCE via CAB path traversal (CVE-2021-40444)
CVE-2021-40444: an Office document loads attacker-hosted HTML through MSHTML, which instantiates an ActiveX control whose codebase points at a CAB archive. A ../ path-traversal filename inside the CAB drops an INF into a predictable temp path, and a .cpl: URL with a relative-path escape then runs it via control.exe. Used in the wild in 2021 to deliver Cobalt Strike loaders, and a recognized predecessor of the Follina MSDT bug (CVE-2022-30190).
- CVE-2021-40539critical 9.82021
ManageEngine ADSelfService raw-path and normalized-path authentication split
The REST security filter decided whether authentication was required using one representation of the request path, while later routing normalized dot segments and dispatched the same request to a protected REST endpoint. Paths containing /./RestAPI or /../RestAPI therefore evaded the filter and regained their protected meaning afterward.
- CVE-2021-26084critical 9.82021
Confluence Webwork Unicode-escape OGNL injection
Several Velocity templates placed request-controlled values inside quoted OGNL expressions. OGNL decoded Java-style Unicode escapes while tokenizing, so an input containing the escape for a quote could terminate the intended string literal and append a new expression.
- CVE-2021-30860high 7.82021
FORCEDENTRY: JBIG2 integer overflow in Apple CoreGraphics
A crafted JBIG2 stream makes a 32-bit symbol count wrap to a small value, so an undersized heap buffer is overrun with the full run of attacker-referenced bitmap pointers.
- CVE-2021-30970medium 5.52021
powerdir: mutable home directory redirects the TCC database
The macOS privacy daemon derives a user's TCC database path from the Directory Services home-directory record, allowing a local attacker to redirect that trusted lookup to a prepared database under an attacker-controlled home.
- CVE-2021-30892medium 5.52021
Shrootless: inherited SIP entitlement through zsh startup
The privileged macOS installer launches zsh for signed-package scripts with a heritable SIP-bypass entitlement, while zsh automatically executes the globally writable-at-root /etc/zshenv startup file.
- CVE-2021-35392high 7.52021
Realtek WSC SSDP response heap overflow
A prefix-only SSDP service-type check accepts an oversized ST suffix, then an unbounded formatter writes that value twice into a 512-byte heap response.
- CVE-2021-35393critical 9.82021
Realtek WSC UPnP callback-port stack overflow
The UPnP callback parser copies an attacker-sized port substring into a ten-byte stack array without checking the substring length.
- CVE-2021-36942high 7.52021
PetitPotam: MS-EFSRPC authentication coercion
A remote backup RPC method opens a caller-supplied path with no restriction to local objects, so a UNC path makes the machine account authenticate outbound to an attacker, who relays that NTLM to AD CS for a domain-takeover certificate.
- CVE-2021-36934high 7.82021
HiveNightmare / SeriousSAM: world-readable SAM hive
An over-permissive ACL let the low-privilege Users group read the SAM, SYSTEM, and SECURITY registry hives, so any standard user could copy them from a shadow copy and dump the local Administrator password hash.
- CVE-2021-33909high 7.82021
Sequoia: size_t-to-int truncation in the Linux kernel seq_file path helper
A path buffer size held as a size_t is passed into an int length parameter; a buffer over 2GB narrows to a negative int, defeats a bounds guard, and drives a fixed out-of-bounds write below the kernel buffer.
- CVE-2021-34473critical 9.82021
ProxyShell: Exchange frontend path confusion (CVE-2021-34473)
A frontend proxy strips a caller-supplied routing anchor with a naive substring erase, so a crafted URL rewrites to an arbitrary internal backend that the proxy then reaches as its own trusted machine account.
- CVE-2021-34527high 8.82021
Windows Print Spooler RpcAddPrinterDriverEx privilege escalation to RCE (PrintNightmare)
PrintNightmare (CVE-2021-34527): an authenticated low-privileged user calls RpcAddPrinterDriverEx and points a driver file at an attacker SMB share, so the SYSTEM Print Spooler loads the attacker DLL. The famous incomplete-fix saga, CVE-2021-1675 was patched first as a low-severity local escalation, but the fix was bypassable, so this RCE followed and still needed Point and Print mitigations. The PoC was published accidentally (released believing 1675 was fully patched, before 34527 was understood as a separate unpatched RCE), forcing an emergency response. The spooler runs as SYSTEM and is enabled by default, including on domain controllers.
- CVE-2021-22214high 8.62021
GitLab CI lint SSRF
A user-supplied URL is fetched server-side with insufficient validation, so an attacker can make the server request internal systems.
- CVE-2021-23017high 7.72021
NGINX resolver compression-pointer off-by-one
A DNS name ending with a label followed by a compression pointer to a NUL byte made the sizing pass allocate one byte too little while the copy pass still emitted a dot.
- CVE-2021-30465high 8.52021
runc mount-destination symlink race (container escape)
A bind-mount destination is resolved and confined once, then the mount syscall re-walks it as a string, so a racing symlink swap redirects the mount outside the container and bind-mounts the host filesystem in.
- CVE-2020-24588low 3.52021
FragAttacks: an unauthenticated A-MSDU flag enables injection
The Wi-Fi QoS header's A-MSDU-present bit was outside authenticated data, so an adjacent attacker could flip it and make valid encrypted payload bytes be parsed as attacker-shaped aggregate subframes.
- CVE-2021-20090critical 9.82021
Arcadyan router path-meaning authentication bypass
The router checks a raw URI against an unauthenticated directory prefix before later decoding and resolving that URI to a protected resource.
- CVE-2021-22204high 7.82021
ExifTool DjVu annotation eval injection (RCE)
A metadata parser expands escape sequences in a quoted annotation by passing the untrusted string through eval, so a crafted quoted value breaks out and runs arbitrary code.
- CVE-2021-22205critical 10.02021
GitLab image-suffix to ExifTool parser mismatch
GitLab selected ExifTool from an upload's image suffix, while ExifTool selected its parser from file content and reached a vulnerable DjVu annotation eval.
- CVE-2021-26855critical 9.82021
ProxyLogon: frontend proxy trusts a client cookie to pick the backend
A frontend proxy chooses which backend to forward an authenticated request to from a client-supplied cookie, so a forged cookie makes it proxy an arbitrary backend request as the server's own identity.
- CVE-2021-21972critical 9.82021
vCenter vSphere Client OVA upload path traversal to RCE
An unauthenticated OVA-upload endpoint extracts a tar archive by joining each entry name onto a fixed directory with no containment, so a ../ entry writes a JSP webshell into the webroot.
- CVE-2021-3156high 7.82021
Sudo 'Baron Samedit' heap overflow (CVE-2021-3156)
A shell-mode argument-unescaping loop skips its string-terminator check, so an argument ending in a lone backslash makes sudo read past the end of the string and copy adjacent heap into a fixed buffer, a heap overflow that yields local root.
- CVE-2021-3129critical 9.82021
Laravel Ignition attacker-controlled stream URI
An exposed debug solution passed an attacker-selected viewFile to both PHP file read and write APIs, allowing stream wrappers to transform or redirect data.
- CVE-2020-16043high 8.82021
NAT Slipstreaming 2.0: TURN bypasses restricted ports
Chromium's WebRTC TURN TCP path did not consult the browser's restricted-port list. A page could reach FTP or H.323 ALG ports and align attacker-controlled bytes at a TCP segment boundary so a NAT created an inbound pinhole.