Skip to main content

Avo CVE-2026-53769

| EUVDEUVD-2026-71747 MEDIUM
Missing Authorization (CWE-862)
2026-07-09 https://github.com/avo-hq/avo GHSA-pqpw-cvm4-8mv9
6.5
CVSS 3.1 · Vendor: https://github.com/avo-hq/avo
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as restricted Avo operator
  2. Delivery
    Browse Avo to identify target resource name and record ID
  3. Exploit
    Craft POST to /avo_api/resources/:resource/:id/attachments with controlled file, filename, and attachment_key
  4. Execution
    Authorization check never invoked by AttachmentsController#create
  5. Persist
    ActiveStorage blob created and attached to record
  6. Impact
    Protected attachment replaced with attacker-controlled binary content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated Avo user session (PR:L) - unauthenticated callers cannot reach AttachmentsController#create. Exploitation is meaningful only in multi-role deployments where at least one user role is expected to be denied upload access by a field-level policy (upload_{FIELD_ID}?) or record-level update? policy via a custom Avo authorization client (e.g., Avo Pro with Pundit); in admin-only single-role deployments all users are already trusted and the missing check has no practical consequence. The attacker must know the Avo resource name and target record integer ID, both obtainable by browsing Avo as an authenticated user. No special platform, feature flag, or non-default configuration is required beyond Avo being mounted and a non-default authorization client that returns false for upload or update policies being present. Exploitation is not limited by network position - any authenticated HTTP client can reach the endpoint - and requires no user interaction.

Impact

The vendor and NVD CVSS of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N) is well-calibrated and independently defensible: authentication is required (PR:L), there is no confidentiality or availability impact, and integrity impact is high but scoped to attachment data on records reachable by the authenticated user. EPSS is 0.25% at the 17th percentile, reflecting low automated-exploitation probability; no CISA KEV listing. A PoC request spec is publicly described in the GHSA advisory, demonstrating targeted exploitation technique rather than a broadly weaponizable scanner payload. Real-world risk is sharply deployment-dependent: admin-only single-role Avo Community deployments have negligible practical exposure since all users are already trusted for record updates. The meaningful risk surface is Avo Pro/Advanced multi-role deployments where restricted content editors or operators are explicitly denied upload access by field-level policies; those deployments have no compensating server-side control until the patch is applied. No conflicting signals in the data: CVSS, description, and fix diff are mutually consistent.

Exploit ScenarioDerived

A restricted content-editor user with a valid Avo session - denied update? and upload_cover_photo? by their Pundit policy - constructs a direct POST to /admin/avo_api/resources/posts/:id/attachments with a crafted binary payload, the filename new.txt, and attachment_key=cover_photo. AttachmentsController#create creates the ActiveStorage blob and attaches it to the target record without invoking the authorization service, replacing the existing protected cover photo with attacker-controlled content. A publicly available PoC request spec in the GHSA advisory demonstrates this behavior with all three upload paths (has_one_attached, has_many_attached, and Trix/key-based).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 16, 2026

Avo's direct attachment upload endpoint (POST /avo_api/resources/:resource_name/:id/attachments/) performs no server-side authorization, allowing any authenticated Avo user to replace or add ActiveStorage attachment blobs on target records even when field-level upload policies (upload_{FIELD_ID}?) and record-level update policies explicitly deny the operation. This primarily impacts multi-role Avo Pro/Advanced deployments where restricted operators rely on Pundit-style per-field authorization to gate uploads; in those configurations an authenticated operator can substitute attacker-controlled binary content, filename, and content-type for protected has_one_attached fields or append to has_many_attached collections. Versions >= 2.28.0 and < 3.32.0 are affected; a PoC request spec is publicly available and the fix was released in v3.32.0.

RemediationAI

Upgrade to Avo >= 3.32.0, released at https://github.com/avo-hq/avo/releases/tag/v3.32.0 and patched via commit de12070dbac0cb6a7e2bea357f9697f99e92554c (PR #4520). The fix moves authorization before blob creation: association-keyed uploads call authorize_action('upload_{association_name}?') and Trix/key-based uploads call authorize_action('update?'), returning HTTP 403 Forbidden JSON on denial. Until the upgrade can be applied, applications may override or monkey-patch Avo::AttachmentsController#create to invoke the authorization service before ActiveStorage::Blob.create_and_upload!; any patch must be tested against the application's Avo authorization client and Trix upload flows, and a fallback to update? for Trix uploads is a behavior change for deployments that currently allow read-only operators to use rich-text uploads. As a coarser compensating control, restrict Avo route access to fully trusted administrators only, eliminating the multi-role exposure vector; this does not address the structural missing check but eliminates practical exploitation in deployments where all Avo-reachable users are already trusted. No official Avo-level workaround was confirmed short of the patch.

Affected VersionsENISA

avo 2.28.0, < 3.32.0

Affected Packages

rubygems avo fix: 3.32.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in rubygems

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Avo (pkg:rubygems/avo) is a Ruby on Rails admin UI framework backed by ActiveStorage for file and attachment management. CWE-862 (Missing Authorization) is the root cause: AttachmentsController#create calls ActiveStorage::Blob.create_and_upload! and immediately attaches the resulting blob to the target record before invoking any authorization check. Avo's field-level authorization API, introduced in v2.28.0 via the file_authorization concern (lib/avo/fields/concerns/file_authorization.rb), defines can_upload_file? → authorize_file_action(:upload) → authorize_action('upload_#{id}?'), but this chain is only used to control client-side UI rendering and is never enforced on the server-side upload path. The symmetric AttachmentsController#destroy action correctly calls authorized_to :delete prior to any deletion, making the asymmetry explicit and confirming the create path was an oversight. The default Avo::Services::AuthorizationService#authorize_action returns true, so applications without a custom authorization client are unaffected; only deployments with a Pro/Pundit-style client that returns false for upload or update policies are exposed.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/avo-hq/avo) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 6.5 MEDIUM

Network-accessible endpoint requires an authenticated low-privilege Avo session; impact is integrity-only (attachment replacement), with no confidentiality or availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 6.5 MEDIUM

Primary rating from Vendor (https://github.com/avo-hq/avo).

CVSS VectorVendor: https://github.com/avo-hq/avo

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

DescriptionCVE.org

Summary

Avo's direct attachment upload endpoint lacks server-side upload authorization and bypasses the documented field-level upload policy methods such as upload_{FIELD_ID}?.

An authenticated Avo user who can reach the Avo attachment upload endpoint can replace or add attachment content, including binary content, filename, and content-type metadata, on a resolved record even when both update? and upload_<field>? policies deny the operation.

This primarily affects multi-role Avo Pro/Advanced-style deployments where non-administrator or restricted operator users can reach Avo and per-record or per-field operations are expected to be enforced by policies.

Details

Avo exposes a direct attachment upload endpoint:

text
POST /<avo-root>/avo_api/resources/:resource_name/:id/attachments/

The vulnerable code path is Avo::AttachmentsController#create:

  • app/controllers/avo/attachments_controller.rb:9-24

Current behavior:

ruby
def create
  blob = ActiveStorage::Blob.create_and_upload! io: params[:file].to_io, filename: params[:filename]
  association_name = BaseResource.valid_attachment_name(@record, params[:attachment_key])

  if association_name
    @record.send(association_name).attach blob
  elsif params[:key].blank?
    raise ActionController::BadRequest.new(...)
  end

  render json: {
    url: main_app.url_for(blob),
    href: main_app.url_for(blob)
  }
end

This endpoint creates an ActiveStorage::Blob before validating the requested attachment association and before any upload authorization could be enforced. If attachment_key resolves to an association, the blob is attached to the target record. If the request uses the key-based/Trix path, the endpoint can still persist the blob and return url/href even when no attachment association is resolved on the target record.

The controller never calls:

  • @resource.authorization.authorize_action("upload_<field>?", record: @record, ...)
  • @resource.authorization.authorize_action("update?", record: @record, ...)

This is inconsistent with the rest of Avo's file authorization implementation. The field-level file authorization concern defines upload authorization as:

  • lib/avo/fields/concerns/file_authorization.rb:11-12
  • lib/avo/fields/concerns/file_authorization.rb:25-27
ruby
def can_upload_file?
  authorize_file_action(:upload)
end

def authorize_file_action(action)
  authorize_action("#{action}_#{id}?", record: record, raise_exception: false)
end

That upload policy is used by UI components to decide whether to render upload controls, but the server-side upload endpoint does not enforce the same policy. A user can therefore bypass the policy by directly POSTing to the endpoint.

By contrast, attachment deletion does call attachment-specific authorization:

  • app/controllers/avo/attachments_controller.rb:27-65
ruby
def destroy
  if authorized_to :delete
    ...
  end
end

def authorized_to(action)
  @resource.authorization.authorize_action("#{action}_#{params[:attachment_name]}?", record: @record, raise_exception: false)
end

The asymmetry is:

  • destroy: calls delete_<attachment_name>?
  • create: does not call upload_<attachment_key>? or update?

The field-level upload authorization intent is also documented by Avo:

  • Issue #1624 requested the "Ability to police each file upload/download/delete".

https://github.com/avo-hq/avo/issues/1624

  • PR #1625 introduced upload_cover_photo? as an example upload policy method.

https://github.com/avo-hq/avo/pull/1625

  • PR #1667 clarified the policy semantics: "From now on, only field level

authorization will be considered. If it is defined and returns true, the action will be granted; otherwise, it will not." https://github.com/avo-hq/avo/pull/1667

  • The current Avo authorization documentation lists upload_{FIELD_ID}? as the

policy method controlling whether a user can upload an attachment, stating: "Controls whether the user can upload the attachment." https://docs.avohq.io/4.0/authorization.html

  • The same documentation says the same upload_file? policy method will be used

to "authorize the file upload" in action file fields. https://docs.avohq.io/4.0/authorization.html

Affected versions observed:

  • PoC-confirmed: Avo 3.31.2, commit

46aa6b3bc9e3283110c39e58cfec8bb95adc1897

  • Same vulnerable code path by source inspection: origin/main HEAD as of

2026-05-29, 9e23ddc88f2b1e762e4a5ec35a6f86370ac16c73

  • Same vulnerable code path by source inspection: Avo v4.0.0.beta.26,

6d339595a27f8779cb99b4aa38ddc97cb702b30f

  • Same vulnerable code path by source inspection: origin/4-dev at version

4.0.0.beta.40, 7ab9794f8b044b11b9677cdc57547d99cf96c3f3

Suggested affected range for the GitHub Security Advisory form:

text
>= 2.28.0

Rationale:

  • The direct attachment upload endpoint exists without upload authorization from

commit ab5f5970e2aa76e6ca0a95bf04f510ba7ed5e858 (feature: trix attachments, 2021-04-24), first included in tag v1.4.0.

  • The documented field-level upload policy bypass is confirmed from commit

667049ceeda838394214489693d088708d9da77d (feature: field level file authorization, 2023-03-12), first included in tag v2.28.0.

  • PR #1667 later clarified the field-level-only grant/deny semantics in commit

31b6ef94f8cc4c340a2a75eec36c838cda933ce7, first included in tag v2.30.1.

From a narrow missing-authorization perspective, the issue exists from v1.4.0; the >= 2.28.0 range is a conservative submission range anchored to the documented field-level upload policy boundary.

Fixed version: to be determined by maintainers.

PoC

A local request spec was used to reproduce the issue. The PoC adds pundit to the test group and replaces Avo::Services::AuthorizationService with a test double. The test double records every authorize_action invocation and, when invoked, delegates the decision to a PostPolicy resolved via Pundit.policy!.

The policy setup is:

  • PostPolicy#update? returns false
  • PostPolicy#upload_attachments? returns false
  • PostPolicy#upload_cover_photo? returns false
  • PostPolicy#method_missing returns true for all other policy methods ending

in ?, simulating a user with general read access but explicit update/upload denial

  • the replacement authorization service records all authorize_action calls

The open-source repository does not include Avo Pro's authorization client. The critical observation is independent of which client is plugged in: the vulnerable endpoint never invokes authorize_action at all, so the call list remains empty.

The PoC user has roles: {admin: true}, which is required only to pass the dummy app's coarse route-level guard:

ruby
authenticate :user, ->(user) { user.is_admin? }

The vulnerability under test is one layer below that guard: the fine-grained record/field authorization that Avo Pro/Pundit deployments would normally enforce. The dummy route gate is not part of Avo's upload policy decision. In a deployment where non-admin operators reach Avo through a different authentication rule, AttachmentsController#create would still skip authorize_action for the upload.

Policy scoping is orthogonal to this finding. Even if apply_policy filtered the record set during lookup, AttachmentsController#create would still not authorize the upload action itself for records that survive the scope.

The spec demonstrates:

  1. Normal record update is denied by policy and does not persist changes.
  2. Direct upload with attachment_key=cover_photo succeeds even though

PostPolicy#upload_cover_photo? returns false, replacing the existing has_one_attached cover_photo blob.

  1. Direct upload with attachment_key=attachments succeeds even though

PostPolicy#upload_attachments? returns false, adding to a has_many_attached association.

  1. Direct upload with params[:key] and no attachment association succeeds,

creates an ActiveStorage::Blob, and returns url/href without attaching the blob to the record.

  1. The direct upload requests do not invoke the replacement authorization

service at all.

The full request-spec patch can be provided in this advisory thread if useful.

Verification environment:

  • Ruby 3.3.1
  • Avo 3.31.2
  • Commit 46aa6b3bc9e3283110c39e58cfec8bb95adc1897

Impact

This is a missing server-side authorization vulnerability in Avo's direct attachment upload endpoint.

The primary affected deployments are Avo Pro/Advanced-style multi-role deployments where non-administrator or restricted operator users can reach Avo, and per-record/per-field operations are expected to be enforced by policies.

In such deployments, an authenticated Avo user can add or replace attachment content on a resolved record even when the host application policy denies both:

  • record update, for example update?
  • field-level upload, for example upload_cover_photo? or

upload_attachments?

For has_one_attached fields, the demonstrated impact is replacement of a protected attachment field with attacker-controlled content. The attacker controls the uploaded binary content, filename, and content-type metadata for the reachable field.

For key-based/Trix upload flows, the endpoint can persist a blob and return a URL even when no attachment association is resolved. This means the endpoint should not be left as an unauthenticated blob creation and URL return path for authenticated Avo users.

In admin-only deployments following the Avo Community pattern, practical exposure is much lower because the only users who can reach the endpoint are already trusted to perform record updates through the normal CRUD path.

Suggested fix direction:

  • validate the requested attachment_key before any blob is stored
  • perform upload authorization before ActiveStorage::Blob.create_and_upload!
  • derive the policy method from the validated association name rather than raw

request input

  • apply an equivalent authorization decision to supported params[:key] / Trix

upload flows before blob creation or URL return

  • return a JSON-compatible 403 Forbidden response when upload authorization is

denied

The default Avo::Services::AuthorizationService#authorize_action returns true in lib/avo/services/authorization_service.rb:34-35, so applications without a custom authorization client should not see a behavior change from adding an authorization call. Deployments with custom/Pro authorization clients that explicitly deny upload would gain enforcement at this endpoint.

No official Avo-level workaround was confirmed in this review. Until a fix is available, applications can reduce exposure by ensuring only fully trusted administrators can access Avo routes.

Applications needing an immediate mitigation may override or monkey-patch Avo::AttachmentsController#create to authorize uploads before blob creation. Any mitigation should be tested against the application's Avo authorization client and upload UI, because the endpoint is used by Trix/file upload flows. If a mitigation falls back to update? for key-based/Trix uploads, that is a conservative behavior change for applications that currently allow read-only operators to use those uploads; those deployments should replace the fallback with an explicit rich-text upload policy.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
niche Ruby on Rails admin framework, not widely deployed outside Rails ecosystems
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy